package com.cnhis.cloudhealth.clinical.clidoctor.patientsearch.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import java.util.HashMap;
import com.cnhis.cloudhealth.commons.utils.Page;

@SuppressWarnings("rawtypes")
@Repository
public class PatientSearchDao extends BaseDao
{
    public List querySearchSickCondition()
        throws Exception
    {
        return this.queryForList("PatientSearch.conditionList", null);
    }
    
    public Page queryWaitingAndTransferTreatment(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("PatientSearch.WaitingAndTransferTreatment",
            map,
            currPage,
            pageSize,
            "PatientSearch.WaitingAndTransferTreatmentCount");
    }
    
    public List queryVisitDoctor(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.queryVisitDoctor",map);
    }
    
    public Page getDoctorAdvicePatient(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("PatientSearch.doctorAdvicePatient", map, currPage, pageSize);
    }
    
    public Page getPinYinCodeSearch(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("PatientSearch.getPinYinCodeSearch",
            map,
            currPage,
            pageSize,
            "PatientSearch.getPinYinCodeSearchCount");
    }
    
    public List findDepartments(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.findDepartments", map);
    }
    
    public List getPatientInfo(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.getPatientInfo", map);
    }
    
    public String getDate(String map)
        throws Exception
    {
        return (String)this.queryToObject("PatientSearch.getDate", map);
    }
    
    public Page patientOrderSubsequentVisitItemDemand(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("PatientSearch.patientOrderSubsequentVisitItemDemand",
            map,
            currPage,
            pageSize,
            "PatientSearch.patientOrderSubsequentVisitItemDemandCount");
    }
    
    public List getPatientByVIPId(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.getPatientByVIPId", map);
    }
    
    public List findWaitDoctorPatient(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.findWaitDoctorPatient", map);
    }
    
    public List findSeeDoctorPatient(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.findSeeDoctorPatient", map);
    }
    
    public String setContext(Map map)
        throws Exception
    {
        return (String)this.queryForExtObject("PatientSearch.setContext", map);
    }
    
    public List simpleRegisterSearchPatient(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.simpleRegisterSearchPatient", map);
    }
    
    public String getiak05(Map map)
        throws Exception
    {
        return (String)this.queryForExtObject("PatientSearch.getiak05", map);
    }
    
    public List medicalSearchPatient(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.medicalSearchPatient", map);
    }
    
    public List seeDoctorHistory(Map map)
        throws Exception
    {
        return this.queryForList("PatientSearch.seeDoctorHistory", map);
    }
    
    public List isMedicalInsurance(Map map)
        throws Exception
    {
        return queryForList("PatientSearch.isMedicalInsurance", map);
    }
    
    public List findDepartmentsZhuyuan()
        throws Exception
    {
        return queryForList("PatientSearch.findDepartmentsZhuyuan", null);
    }
    
    public List findPatentVao1List(HashMap map)
        throws Exception
    {
        return queryForList("PatientSearch.findPatentVao1List", map);
    }
    
    public List findSysparams(HashMap hs)
        throws Exception
    {
        return queryForList("PatientSearch.findSysparams", hs);
    }
    
    public List updateAllSysparams(HashMap hs)
        throws Exception
    {
        return queryForList("PatientSearch.updateAllSysparams", hs);
    }

    public List findYaofang(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.findYaofang", hs);
    }

    public List findSysparams1(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.findSysparams1", hs);
    }

    public List querywaitingandtransfertreatment_one(HashMap map) throws Exception
    {
        return this.queryForList("PatientSearch.querywaitingandtransfertreatment_one",map);
    }

    public void updateUserParams_cancel(HashMap hs) throws Exception
    {
        this.update("PatientSearch.updateUserParams_cancel", hs);
    }

    public List findDepartmentsZhuyuan2() throws Exception
    {
        return queryForList("PatientSearch.findDepartmentsZhuyuan2", null);
    }

    public List findXiYaofang(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.findXiYaofang", hs);
    }

    public List findChengYaofang(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.findChengYaofang", hs);
    }

    public List findZHongYaofang(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.findZHongYaofang", hs);
    }
    public List findCailiaofang(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.findCailiaofang", hs);
    }

    public List queryVac34(HashMap hs) throws Exception
    {
        return queryForList("PatientSearch.queryVac34", hs);
    }
}
